<?php

require_once 'paging/adapter/select.php';

class Paging_Adapter_Tableselect extends Paging_Adapter_Select
{
	/**
	 * Returns a Zend_Db_Table_Rowset_Abstract of items for a page.
	 *
	 * @param  integer $offset Page offset
	 * @param  integer $itemCountPerPage Number of items per page
	 * @return Zend_Db_Table_Rowset_Abstract
	 */
	public function getItems($offset, $limit)
	{
		$this -> _data -> limit($limit, $offset);

		return $this -> _data -> getTable() -> fetchAll($this -> _data);
	}

}
